<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1{
            width:600px;
            overflow: hidden;
            border: 1px solid red;
            margin: 0 auto;
        }
        .div2{
            width: 2400px;
        }
        img{
            width: 80px;
            margin: 30px 20px 20px 0;
            transition: all 0.5s;
        }
        img:focus{
            width:100px;
            margin:0px 10px 10px 0;
        }
    </style>
</head>
<body>
    <div class="div1">
        <div class="div2">
            <img src="./20-1css轮播img-3.jpg" alt="" tabindex="1">
            <img src="./20-1css轮播img-3.jpg" alt="" tabindex="1">
            <img src="./20-1css轮播img-3.jpg" alt="" tabindex="1">
            <img src="./20-1css轮播img-3.jpg" alt="" tabindex="1">
            <img src="./20-1css轮播img-3.jpg" alt="" tabindex="1">
            <img src="./20-1css轮播img-3.jpg" alt="" tabindex="1">
            <img src="./20-1css轮播img-3.jpg" alt="" tabindex="1">
            <img src="./20-1css轮播img-3.jpg" alt="" tabindex="1">
            <img src="./20-1css轮播img-3.jpg" alt="" tabindex="1">
            <img src="./20-1css轮播img-3.jpg" alt="" tabindex="1">
        </div>
    </div>
</body>
</html>